<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,java.io.*,java.sql.*,InvestmentPojo.*,ImmovableIndia.*;"%>
<html>
<head>
<title>Branch/LO/Project Office In India Tool</title>
</head>
<%!
ConnectionPool pool=null;
public Connection getConnection() throws SQLException, Exception {
	pool=new ConnectionPool();
	return pool.getConnection();
}
%>
<% 
List optionsList123=new ArrayList();
Connection con=null;
Statement st=null;
ResultSet rs=null;
String optionvalue="";
try{
	con=getConnection();
	st=con.createStatement();
	rs=st.executeQuery("select * from investment_in_india where form_id = 7 order by option_label");
	while(rs.next()){
		OptionsList obj = new OptionsList();
		
		
		obj.setOptionId(rs.getString(1));
		obj.setListTypeId(rs.getString(2));
		obj.setOptionLabel(rs.getString(3));
		obj.setOptionValue(rs.getString(4));
		obj.setQestFlag(rs.getString(7));
		obj.setShowFlag(rs.getString(8));
		optionsList123.add(obj);
	}
//	System.out.println(optionsList);	
}catch(Exception e ){
	e.printStackTrace();
}finally{
	try {
		if(null != rs)
			pool.releaseResources(rs);
		System.out.println("Connection RS closed........--------------");
		if(null != st)
			pool.releaseResources(st);
		System.out.println("Connection ST closed........--------------");
		if(null != con)
		pool.releaseConnection(con);
		System.out.println("Connection con closed........--------------");
	} catch (Exception e) {
		e.printStackTrace();
	}
}
%>
<script language='javascript' type='text/javascript'>
function loadSectorDropDown()
{
	var selectedValue ='';
	var selectedInvestor ='';
	var radios ='';
	
	radios = document.getElementsByName("entity");		
	for(var i = 0; i < radios.length; i++) {
	    if(radios[i].checked) selectedValue = radios[i].value;  
	} 	
	radios = document.getElementsByName("investor");
	for(var i = 0; i < radios.length; i++) {
	    if(radios[i].checked) selectedInvestor = radios[i].value;  
	}
	//alert("selected value..."+selectedValue);
	var xmlhttp;
	if (window.XMLHttpRequest)
	  {
		// code for IE7+, Firefox, Chrome, Opera, Safari
	   xmlhttp=new XMLHttpRequest();
	  }
	else
	  {
		// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	     {
		  document.getElementById("TR04").innerHTML = "";
	     document.getElementById("TR04").innerHTML= xmlhttp.responseText;
 	    }
	  }
	xmlhttp.open("GET","dropDownAction.do?key="+selectedValue+"&invkey="+selectedInvestor+"&formId="+7,true);
	xmlhttp.send();
	selectedValue = '';
}
function loadFormToSubmit()
{

	var selectedValue ='';
	var sectorId = '';
	var subsectorId = '';
	var invRadiosValue = getSelectedRadiosValue("entities");
	    if(invRadiosValue != "" && null != invRadiosValue){ 
	    	selectedValue = invRadiosValue;  
	}	//alert(selectedValue+"--1");
	var entityRadios = getSelectedRadiosValue("typeofoffice");		
	    if(entityRadios != "" && null != entityRadios){ 
	    	selectedValue = selectedValue+'.'+entityRadios;  
	} 	///alert(selectedValue+"--2");
	var msmedValue = getSelectedRadiosValue("Profitmaking");
		if(msmedValue != "" && null != msmedValue){
			selectedValue = selectedValue+'.'+msmedValue;
		}
	var modeOfInvValue = getSelectedRadiosValue("USD");
	 	if(modeOfInvValue !="" && null != modeOfInvValue){
		selectedValue = selectedValue+'.'+modeOfInvValue;
	 	}  //alert(selectedValue+"--5");
	var notMsmedValue = getSelectedRadiosValue("perpose");
		if(notMsmedValue != "" && null != notMsmedValue){
			selectedValue = selectedValue+'.'+notMsmedValue;
		}
	var modeOfInvValue = getSelectedRadiosValue("sector");
	 	if(modeOfInvValue !="" && null != modeOfInvValue){
		selectedValue = selectedValue+'.'+modeOfInvValue;
	 }  //alert(selectedValue+"--5");
	//document.getElementById("selected").innerHTML = "Selected Key - "+selectedValue;
	var xmlhttp;
	if (window.XMLHttpRequest)
	  {
		// code for IE7+, Firefox, Chrome, Opera, Safari
	   xmlhttp=new XMLHttpRequest();
	  }
	else
	  {
		// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	     {
		document.getElementById("myDiv").innerHTML='';
		cache: false;
	    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
	    cache: false;
	    }
	  }
	xmlhttp.open("GET","investorAction.do?key="+selectedValue+"&formId="+7,true);
	xmlhttp.send();
	selectedValue = '';
}
function radioUncheckFun(radiosname){
	var radList = document.getElementsByName(radiosname);
	if(null != radList){
	 for (var i = 0; i < radList.length; i++) {
	 if(radList[i].checked) radList[i].checked = false;
	 }
}}
function getSelectedRadiosValue(NameofRadios){
	var selectedRadioValue='';
	var radList = document.getElementsByName(NameofRadios);
	if(null != radList){
	 for (var i = 0; i < radList.length; i++) {
	 if(radList[i].checked) selectedRadioValue = radList[i].value;
	 }
	 return selectedRadioValue;
   }
}
function goForConclution(){
	loadFormToSubmit();
	document.getElementById("Answers").style.display="";
	document.getElementById("myDiv").innerHTML="<table width='700' align='center' border='0' cellspacing='0' cellpadding='0' valign='middle'><tr><td>&nbsp;</td></tr><img alt='Plz wait...' src='loading9.gif' width='30'/>&nbsp;&nbsp;<p valign='middle'>Plz wait...&nbsp;&nbsp;While loading...</p><tr><td>&nbsp;</td></tr></table>";
	document.getElementById('bottom').scrollIntoView();
	goForGuidelines();
}

function EntityOutSideInida(id){
	var selectedRadioValue = '';
	var radList = document.getElementsByName("entities");
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	if(null != radList){
		 for (var i = 0; i < radList.length; i++) {
		 if(radList[i].checked) selectedRadioValue = radList[i].value;
		 }
		   <% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj1 =(OptionsList)optionsList123.get(i); 
	if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("30") && obj1.getShowFlag().equals("Y")){
		String abc = (String)obj1.getOptionValue();
		%>
		if(selectedRadioValue == '<%=abc%>'){
			document.getElementById('entitytr'+selectedRadioValue).style.display="";
			document.getElementById('questa').style.display="";
			document.getElementById('table1').style.display="";
		}else{
			document.getElementById('entitytr<%=abc%>').style.display="none";
		}
		<%
			}
		}
	}
	%>
	   }
}
function onClickEntityOutSideInidaShowAll(){
	document.getElementById('questa').style.display="none";
	document.getElementById('table1').style.display="none";
	document.getElementById('table2').style.display="none";
	document.getElementById('table3').style.display="none";
	document.getElementById('table4').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById('table6').style.display="none";
	document.getElementById('table7').style.display="none";
	document.getElementById('table8').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	onClickTypeOfOfficeShowAll();
	radioUncheckFun('entities'); /* radioUncheckFun('typeofoffice'); radioUncheckFun('sector'); radioUncheckFun('typeofinv'); radioUncheckFun('valuation'); */
	   <% if(optionsList123 != null){
			for(int i=0;i<optionsList123.size();i++){
			OptionsList obj1 =(OptionsList)optionsList123.get(i); 
			if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("30") && obj1.getShowFlag().equals("Y")){
				String abc = (String)obj1.getOptionValue();
				%>
					document.getElementById('entitytr<%=abc%>').style.display="";
				<%
					}
				}
			}
			%>
}
function onClickTypeOfOfficeInInida(){
	//document.getElementById('table2').style.display="none";
	document.getElementById('table3').style.display="none";
	document.getElementById('table4').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById('table6').style.display="none";
	document.getElementById('table7').style.display="none";
	document.getElementById('table8').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	onClickOnPerposeShowAll();
	radioUncheckFun('Profitmaking'); radioUncheckFun('USD'); //radioUncheckFun('typeofinv');
	var selectedRadioValue = '';
	var radList = document.getElementsByName("typeofoffice");
	document.getElementById('table2').style.display="";
	document.getElementById('table3').style.display="";
	if(null != radList){
		 for (var i = 0; i < radList.length; i++) {
		 if(radList[i].checked) selectedRadioValue = radList[i].value;
		 }
		   <% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj1 =(OptionsList)optionsList123.get(i); 
	if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("31") && obj1.getShowFlag().equals("Y")){
		String abc = (String)obj1.getOptionValue();
		%>
		if(selectedRadioValue == '<%=abc%>'){
			document.getElementById('officeininida'+selectedRadioValue).style.display="";
			document.getElementById('questb').style.display="";
		}else{
			document.getElementById('officeininida<%=abc%>').style.display="none";
		}
		<%
			}
		}
	}
	%>
	   }
	if(getSelectedRadiosValue("typeofoffice") == "5"){
		setVisibilityArr([table2,table3],'none');
		setVisibilityArr([table8],'');
	}else if(getSelectedRadiosValue("typeofoffice") == "4"){
		document.getElementById('networth').innerHTML='50,000';
		document.getElementById('trackrecord').innerHTML='three';
	}else{
		document.getElementById('networth').innerHTML='100,000';
		document.getElementById('trackrecord').innerHTML='five';
	}
	
}
function onClickTypeOfOfficeShowAll(){
	document.getElementById('questb').style.display="none";
	document.getElementById('table2').style.display="none";
	document.getElementById('table3').style.display="none";
	document.getElementById('table4').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById('table6').style.display="none";
	document.getElementById('table7').style.display="none";
	document.getElementById('table8').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	//onClickSectorsEntitiesShowAll();
	radioUncheckFun('typeofoffice'); radioUncheckFun('Profitmaking'); radioUncheckFun('USD'); //radioUncheckFun('valuation');
	   <% if(optionsList123 != null){
			for(int i=0;i<optionsList123.size();i++){
			OptionsList obj1 =(OptionsList)optionsList123.get(i); 
			if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("31") && obj1.getShowFlag().equals("Y")){
				String abc = (String)obj1.getOptionValue();
				%>
					document.getElementById('officeininida<%=abc%>').style.display="";
				<%
					}
				}
			}
			%>
}
function onClickSectorsEntites(){
	var selectedRadioValue = getSelectedRadiosValue("sector");
	if(null != selectedRadioValue){		 
	<% for(int i=6;i< 22;i++){%>
		if(selectedRadioValue == '<%=i%>'){
			document.getElementById('sectortr'+selectedRadioValue).style.display="";
			document.getElementById('questc').style.display="";
			document.getElementById('questd').style.display="";
			document.getElementById('queste').style.display="";
			document.getElementById('questf').style.display="";
			document.getElementById("submitbutton").style.display="";
		}else{
			document.getElementById('sectortr<%=i%>').style.display="none";
		}
		<%}%>
	   }
}
function onClickSectorsEntitiesShowAll(){
	document.getElementById('questc').style.display="none";
	document.getElementById('questd').style.display="none";
	document.getElementById('queste').style.display="none";
	document.getElementById('questf').style.display="none";
	//document.getElementById('table3').style.display="none";
	//document.getElementById('table4').style.display="";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	radioUncheckFun('sector');  
	   <% for(int i=6;i< 22;i++){%>
			document.getElementById('sectortr<%=i%>').style.display="";
		<%}%>
}
function onClickEntity(){
	var repyes=document.getElementById("repyes");
	 var repno=document.getElementById("repno");
	 if(repyes.checked){
		 document.getElementById("submitbutton").style.display="";
		 document.getElementById("Answers").style.display="none";
	     }
	 if(repno.checked){
		 document.getElementById("submitbutton").style.display="";
		 document.getElementById("Answers").style.display="none";
		 }
}

function onClickProfitMaking(){
	//onClickSectorsEntitiesShowAll();
	document.getElementById('table').style.display="none";
	document.getElementById('table3').style.display="none";
	var repyes=document.getElementById("tr4yes");
	 var repno=document.getElementById("tr4no");
	 if(repyes.checked){
		 document.getElementById("table3").style.display="";
		 document.getElementById("submitbutton").style.display="none";
		 document.getElementById("Answers").style.display="none";
		 radioUncheckFun('USD');
	 }
	 if(repno.checked){
		 document.getElementById("table3").style.display="";
		 document.getElementById("submitbutton").style.display="none";
		 document.getElementById("Answers").style.display="none";
		 setVisibilityArr([table4,table5,table6,table7,table8],'none');
		 radioUncheckFun('USD');
		 }
}
function onClickUSD(){
	onClickSectorsEntitiesShowAll();
	//document.getElementById('table3').style.display="none";
	var repyes=document.getElementById("tryes");
	 var repno=document.getElementById("trno");
	 var Profitres=getSelectedRadiosValue("Profitmaking");
	 if(repyes.checked){
		 if(getSelectedRadiosValue("typeofoffice") == "2" && Profitres == "Y"){
			 document.getElementById("table").style.display="";
			 document.getElementById("table4").style.display="";
			 setVisibilityArr([table5,table6,table7,table8],'none');
		 }else if(getSelectedRadiosValue("typeofoffice") == "3" && Profitres == "Y"){
			 document.getElementById("table").style.display="";
			 document.getElementById("table5").style.display="";
			 setVisibilityArr([table4,table6,,table7,table8],'none');
		 }else if(getSelectedRadiosValue("typeofoffice") == "4" && Profitres == "Y"){
			 document.getElementById("table").style.display="";
			 document.getElementById("table6").style.display="";
			 setVisibilityArr([table4,table5,,table7,table8],'none');
		 }else if(getSelectedRadiosValue("typeofoffice") == "5" && Profitres == "Y"){
			 document.getElementById("table").style.display="";
			 document.getElementById("table8").style.display="";
			 setVisibilityArr([table4,table5,table6,table7],'none');
		 }else{
		 document.getElementById("submitbutton").style.display="";
	     }
	 }
	 if(repno.checked){
		 //document.getElementById("table3").style.display="none";
		 document.getElementById("submitbutton").style.display="";
		 document.getElementById("table").style.display="none";
		 }
}
function onClickOnPerpose(){
	var selectedRadioValue = '';
	var radList = document.getElementsByName("perpose");
	document.getElementById('table').style.display="";
	document.getElementById('table7').style.display="";
	if(null != radList){
		 for (var i = 0; i < radList.length; i++) {
		 if(radList[i].checked) selectedRadioValue = radList[i].value;
		 }
		   <% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj1 =(OptionsList)optionsList123.get(i); 
	if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("36") && obj1.getShowFlag().equals("Y")){
		String abc = (String)obj1.getOptionValue();
		%>
		if(selectedRadioValue == '<%=abc%>'){
			document.getElementById('perpaz'+selectedRadioValue).style.display="";
			document.getElementById('questg').style.display="";
		}else{
			document.getElementById('perpaz<%=abc%>').style.display="none";
		}
		<%
			}
		}
	}
	%>
	   }
}
function onClickOnPerposeShowAll(){
	document.getElementById('questg').style.display="none";
	document.getElementById('table4').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById('table6').style.display="none";
	document.getElementById('table7').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	onClickSectorsEntitiesShowAll();
	 radioUncheckFun('Profitmaking'); radioUncheckFun('USD'); radioUncheckFun('perpose');
	   <% if(optionsList123 != null){
			for(int i=0;i<optionsList123.size();i++){
			OptionsList obj1 =(OptionsList)optionsList123.get(i); 
			if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("36") && obj1.getShowFlag().equals("Y")){
				String abc = (String)obj1.getOptionValue();
				%>
					document.getElementById('perpaz<%=abc%>').style.display="";
				<%
					}
				}
			}
			%>
}
function goForGuidelines(){
	 wLeft = window.screenLeft ? window.screenLeft : window.screenX;
  wTop = window.screenTop ? window.screenTop : window.screenY;
	 w=610; h=320;
 var left = wLeft + (window.innerWidth / 2) - (w / 2);
 var top = wTop + (window.innerHeight / 2) - (h / 2);
 var settings='toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left;
 var URL="dropDownAction.do?formGuideId=BRANCH-OFFICE-IN-INDIA-TOOL.GuideInfo&method=FormGuidsInfo";
	window.target='target';
 myWind=window.open(URL,'target',settings);
	//myWind.document.write("Guidelines Test Success...!");
	myWind.focus();
	
}
</script>
<body bgcolor="blue">
	<form name="frm" method="post">
		<table width="730" align="center" border="0" cellspacing="0"
			cellpadding="0">
			<input type="hidden" name="formId" value="7" />
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		<table width="730" align="center" class="TBFORM" border="0"
			cellspacing="0" cellpadding="0">

			<tr>
				<td align="center" height="10" class="TITLEFORM">Branch/LO/Project Office In India Tool</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="730" style="padding-left:10px">
					<table width="700" align="center" class="TDBBLRFORM" border="0"
						cellspacing="0" cellpadding="0">
						<tr>
							<td colspan="2" class="testform" width="700" id=""><b>Entity Outside India
</b> &nbsp;<a class="anchor" style="display: none;" id="questa"
								href="javascript:onClickEntityOutSideInidaShowAll()" value="show all"
								align="right">show all</a></td>
						</tr>
						<tr>
							<td>
								<table width="700" align="center" border="0" cellspacing="0"
									cellpadding="0">
									<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("30") && obj.getShowFlag().equals("Y")){
	%>
									<tr id="entitytr<%=obj.getOptionValue()%>">
										<td width="30" valign="top"><input type="radio"
											name="entities" id="<%=obj.getOptionId()%>"
											value="<%= obj.getOptionValue()%>"
											onclick="EntityOutSideInida('<%=obj.getOptionId()%>')" /></td>
										<td width="670" valign="top"><font><label
													for="<%=obj.getOptionId()%>"><u title="Foreign company means a body corporate incorporated outside India, and includes a firm or other association of individuals."><%= obj.getOptionLabel()%></u></label></font></td>
									</tr>
									<%	
	}
	}	  		
} %>
								</table>
							</td>
						</tr>
					</table>
					<div id="table1" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>

						<table width="700" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="700" id=""><b>Type of office in India
</b> &nbsp;<a class="anchor" style="display: none;" id="questb"
									href="javascript:onClickTypeOfOfficeShowAll()"
									value="show all" align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="700" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("31") && obj.getShowFlag().equals("Y")){
	%>
										<tr id="officeininida<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="typeofoffice" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickTypeOfOfficeInInida()" /></td>
											<td width="670" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>

									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table2" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="710" align="center" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr class="testform">
								<td width="500"><b>Whether a profit making track record during the immediately preceding <span id="trackrecord">five</span> financial years in the home country</b></td>
								<td width="200"><b><label for="tr4yes"><input
											type="radio" value="Y" name="Profitmaking" id="tr4yes"
											onClick="onClickProfitMaking()" />&nbsp;YES</label>&nbsp;&nbsp;<label
										for="tr4no"><input type="radio" value="N"
											name="Profitmaking" id="tr4no" onClick="onClickProfitMaking()" />&nbsp;NO</label></b></td>
							</tr>
						</table>
					</div>
					<div id="table3" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="710" align="center" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr class="testform">
								<td width="500"><b>Whether <u title="Total of paid-up capital and free reserves, less intangible assets as per the latest Audited Balance Sheet or Account Statement certified by a Certified Public Accountant or any Registered Accounts Practitioner by whatever name.">NetWorth</u> is not less than USD <span id="networth">100,000</span> or its equivalent</b></td>
								<td width="200"><b><label for="tryes"><input type="radio" value="Y" name="USD" id="tryes"
											onClick="onClickUSD()" />&nbsp;YES</label>&nbsp;&nbsp;<label
										for="trno"><input type="radio" value="N"
											name="USD" id="trno" onClick="onClickUSD()" />&nbsp;NO</label></b></td>
							</tr>
						</table>
					</div>
					<div id="table8" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="700" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="700" id=""><b>Perpose</b> &nbsp;<a class="anchor" style="display: none;" id="questg"
									href="javascript:onClickOnPerposeShowAll()" value="show all"
									align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="700" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("36")){
	%>
										<tr id="perpaz<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="perpose" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickOnPerpose()" /></td>
											<td width="670" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table">
					<div id="table4" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="700" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="700" id=""><b>Sectors / Entities</b> &nbsp;<a class="anchor" style="display: none;" id="questc"
									href="javascript:onClickSectorsEntitiesShowAll()" value="show all"
									align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="700" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("32")){
	%>
										<tr id="sectortr<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="sector" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickSectorsEntites()" /></td>
											<td width="670" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table5" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="700" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="700" id=""><b>Sectors / Entities</b> &nbsp;<a class="anchor" style="display: none;" id="questd"
									href="javascript:onClickSectorsEntitiesShowAll()" value="show all"
									align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="700" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("33")){
	%>
										<tr id="sectortr<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="sector" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickSectorsEntites()" /></td>
											<td width="670" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table6" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="700" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="700" id=""><b>Sectors / Entities</b> &nbsp;<a class="anchor" style="display: none;" id="queste"
									href="javascript:onClickSectorsEntitiesShowAll()" value="show all"
									align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="700" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("34")){
	%>
										<tr id="sectortr<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="sector" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickSectorsEntites()" /></td>
											<td width="670" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table7" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="700" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="700" id=""><b>Sectors / Entities</b> &nbsp;<a class="anchor" style="display: none;" id="questf"
									href="javascript:onClickSectorsEntitiesShowAll()" value="show all"
									align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="700" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("35")){
	%>
										<tr id="sectortr<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="sector" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickSectorsEntites()" /></td>
											<td width="670" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>
									</table>
								</td>
							</tr>
						</table>
					</div>
					</div>
					<div id="submitbutton" style="display: none;">
						<table width="700" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
							<tr align="center">
								<td><a class="anchor" align="center" id="finalanswer"
									href="javascript:goForConclution()" value="">Go For
										Conclusion</a></td>
							</tr>
							<!-- <tr>
								<td id="selected" style="display: none;"></td>
							</tr> -->
						</table>
					</div>
					
						<div id="Answers" style="display: none;">
							<table width="700" align="center" border="0" cellspacing="0"
								cellpadding="0" valign="middle">
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>
							<table width="700" bgcolor="" align="center"
								class="TBFORM" border="0" cellspacing="0" cellpadding="0"
								valign="middle">
								<div id='bottom'>
								<tr>
									<td class="testform" width="700" colspan="1" align="left"><font size="2"><b>Know
											Your Eligibility and Allied Conditions</b></font></td>
								</tr>
								</div>
								<tr>
									</br><td id="myDiv" align="center"></td>
								</tr>
							</table>
							<table width="700" align="center" border="0" cellspacing="0"
								cellpadding="0" valign="middle">
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>
							<table width="700" align="center" border="0" cellspacing="0"
								cellpadding="0" valign="middle">
								<tr>
									<td><a class="anchor" style="width:170px;" id="finalanswer"
									href="javascript:goForGuidelines()" value=""><b>General
										Guidelines</b></a></td>
								</tr>
							</table>
						</div>
					
			<tr>
				<td>&nbsp;</td>
			</tr>
			</td>
			</tr>
		</table>
		<table width="700" align="center" border="0" cellspacing="0"
			cellpadding="0" valign="middle">
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>

	</form>
</body>
<script type="text/javascript">
function setVisibilityArr(varArray,visibility){
    if(null != varArray){
        for(i = 0; i < varArray.length; i++){
            var tdvar = varArray[i];
            if(tdvar != null){
            tdvar.style.display=visibility;
            }
        }
    }
 }
 document.body.onload = function(){
    radioUncheckFun('entities'); radioUncheckFun('typeofoffice'); radioUncheckFun('sector');	
    radioUncheckFun('Profitmaking'); radioUncheckFun('USD'); radioUncheckFun("perpose");
	 } 

</script>
</html>